package kopierhelferV1;

public class Transfercounter extends Thread {
	
	
	GUI gui = new GUI();
	Copy_Directory copy = new Copy_Directory();
	private  int bitCount = 0;
	
	public void run(){
		
	do {
//			try {
//		          sleep(5000);
//		        }
//		        catch(InterruptedException e) {  }
//		    
//		    bitCount = copy.getCount();
//		    bitCount = bitCount/5;
//		    
//		    gui.setbps(bitCount+" bit per sec");			
//			
		bitCount++;	
		
		try {
	          sleep(1000);
	        }
	        catch(InterruptedException e) {  }
		
		}while(true);
		
		
		
	}
	
	public void outsys(){
		System.out.println(bitCount);
	}
	
}
